﻿using System;
using Nop.Core.Domain.Logistics;
using Nop.Admin.Models.Common;

namespace Nop.Admin.Models.Logistics
{
    public class LogisticsRouteListLocationModel
    {
        public int AddressId { get; set; }

        public int PackageId { get; set; }

        public string QrCodeUrl { get; set; }

        public string TrackingNumber { get; set; }

        public LocationStatus StatusId { get; set; }

        public DateTime UpdatedOnUtc { get; set; }

        public int Rank { get; set; }

        public string Status 
        {
            get
            {
                return this.StatusId.ToString();
            }
            set
            {
                this.StatusId = (LocationStatus)Enum.Parse(typeof(LocationStatus), value);
            }
        }

        public AddressModel LocationAddress { get; set; }
    }
}
